﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace Trimmer
{
    public partial class DetailA : Form
    {
        public DetailA(string FileName, string Name)
        {
            InitializeComponent();
            this.Text = Name;
            Image img = Image.FromFile(FileName);
            pictureBox1.Image = img;
            pictureBox1.Width = img.Width;
            pictureBox1.Height = img.Height;
            this.Width = img.Width + 25;
            this.Height = img.Height + 45;
            this.StartPosition = FormStartPosition.CenterScreen;
        }

        private void DetailA_Load(object sender, EventArgs e)
        {
        }

    }
}
